<?php 
	include_once 'Participation.class.php';
	include_once 'Album.class.php';
	include_once 'Art.class.php';

	class Author extends SuperMetier {
		private $firstName;
		private $lastName;
		private $art;
		private $album;
		private $participation;
		
		public function __construct() {
			$this->art = array();
			$this->album = array();
			$this->participation = new Participation();
    	}
    	
    	public function getArt() {
    		return $art;
    	}
    	public function getAlbum() {
    		return $album;
    	}
    	public function addArt($_art) {
    		array_push($this->art ,$_art);
    	}
		public function addAlbum($_album) {
    		array_push($this->album ,$_album);
    	}
    	
    	function __toString() {
    		return 	parent::__toString() .
    				'<br />' .
    				'firstName = ' . $this->firstName .
    				'lastName = ' . $this->lastName .
    				'<br />' .
    				$this->art .
    				'<br />' .
    				$this->album .
    				'<br />' .
    				$this->participation;
    		
    	}
		/**
		 * <p> Getteur and Setteur </p>
		 */
		public function getFirstName () {
			return $this->firstName;
		}
		public function getLastName () {
			return $this->lasttName;
		}
		public function setFirstName ($_firstName) {
			$this->firstName = $_firstName;
		}
		public function setLastName ($_lastName) {
			$this->lastName = $_lastName;
		}
		public function getParticipation () {
			$this->participation;
		}
		public function setParticipation (Participation $_participation) {
			$this->participation = $_participation;
		}
	}
?>